<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      OpenJPEG-2.3.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="opencv.html" title="opencv-4.2.0">Prev</a>
          <p>
            opencv-4.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pixman.html" title="Pixman-0.38.4">Next</a>
          <p>
            Pixman-0.38.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="openjpeg2" name="openjpeg2"></a>OpenJPEG-2.3.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to OpenJPEG
        </h2>
        <p>
          <span class="application">OpenJPEG</span> is an open-source
          implementation of the JPEG-2000 standard. OpenJPEG fully respects
          the JPEG-2000 specifications and can compress/decompress lossless
          16-bit images.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/uclouvain/openjpeg/archive/v2.3.1/openjpeg-2.3.1.tar.gz">
                https://github.com/uclouvain/openjpeg/archive/v2.3.1/openjpeg-2.3.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 3b9941dc7a52f0376694adb15a72903f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.1 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 15 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          OpenJPEG Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="lcms2.html" title="Little CMS-2.9">Little
          CMS-2.9</a>, <a class="xref" href="libpng.html" title=
          "libpng-1.6.37">libpng-1.6.37</a>, <a class="xref" href=
          "libtiff.html" title="LibTIFF-4.1.0">LibTIFF-4.1.0</a>, and
          <a class="xref" href="doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> (to build the API
          documentation)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/openjpeg2">http://wiki.linuxfromscratch.org/blfs/wiki/openjpeg2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of OpenJPEG
        </h2>
        <p>
          Install <span class="application">OpenJPEG</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir -v build &amp;&amp;
cd       build &amp;&amp;

cmake -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DBUILD_STATIC_LIBS=OFF .. &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a working test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;

pushd ../doc &amp;&amp;
  for man in man/man?/* ; do
      install -v -D -m 644 $man /usr/share/$man
  done 
popd</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">opj_compress, opj_decompress, and
              opj_dump</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libopenjp2.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/openjpeg-2.3 and
              /usr/lib/openjpeg-2.3</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="opj_compress" name="opj_compress"></a><span class=
                    "term"><span class=
                    "command"><strong>opj_compress</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts various image formats to the jpeg2000 format.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="opj_decompress" name=
                    "opj_decompress"></a><span class="term"><span class=
                    "command"><strong>opj_decompress</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts jpeg2000 images to other image types.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="opj_dump" name="opj_dump"></a><span class=
                    "term"><span class=
                    "command"><strong>opj_dump</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    reads in a jpeg2000 image and dumps the contents to
                    stdout.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 12:12:55 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="opencv.html" title="opencv-4.2.0">Prev</a>
          <p>
            opencv-4.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pixman.html" title="Pixman-0.38.4">Next</a>
          <p>
            Pixman-0.38.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
